<!DOCTYPE html>
<html>
  <head>
    <title>zkNavigator</title>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
    <script src="/static/jquery-2.1.4.js"></script>
    <script src="/static/bootstrap/js/bootstrap.min.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1">
  </head>
  <body>
    <div class="container">
      <div class="col-md-12">
        <div class="row">


<h2 th:text="${pathOldUrl}"></h2>
<form name="myform" action="/editsub" method="POST">
<textarea class="form-control" cols="80" rows="20" name="content" th:text="${content}">

</textarea>

<input type="hidden" name="node" th:value="${pathUrl}">
<br><input class="btn btn-primary" type="submit" value="Save">
<input class="btn btn-default" type="button" value="Back" onclick="history.go(-1)">
</form>

<link rel="stylesheet" href="/static/show-hint-codemirror.css">
<style>
  .CodeMirror {
    border: 1px solid #eee;
    height: auto;
  }
</style>

<script src="/static/properties.js"></script>

<script th:inline="javascript">//引用  
   /*<![CDATA[*/  
    var fileNameSrc = [[${pathUrl}]] ;
   //取值  
   /*]]>*/  
</script>  

<script type="text/javascript">
  var types = {
  "ini": "properties",
  "html": "htmlmixed",
  "htm": "htmlmixed",
  "js": "javascript",
  "_js": "javascript",
  "json": "javascript",
  "xml": "xml",
  "wxs": "xml",
  "wxl": "xml",
  "wsdl": "xml",
  "xslt": "xml",
  "xsl": "xml",
  "xul": "xml",
  "xbl": "xml",
  "config": "xml",
  "xaml": "xml",
  "sql": "sql",
  "md": "markdown",
  "yaml": "yaml",
  "yml": "yaml"
  };

  var filename = fileNameSrc;
  var ext = filename.split('.').pop();

  var editor = CodeMirror.fromTextArea(document.getElementsByTagName('textarea')[0], {
    lineNumbers: true,
    matchBrackets: true,
    mode: types[ext] ? types[ext] : undefined,
    viewportMargin: Infinity
  });
</script>




        </div>
      </div>
    </div>
  </body>
</html>
